package cool.houge.pig.repository.login;

import cool.houge.pig.model.LoginChannel;
import org.springframework.data.repository.reactive.ReactiveCrudRepository;
import reactor.core.publisher.Mono;

/**
 * 登录通道数据仓库.
 *
 * @author KK (kzou227@qq.com)
 */
public interface LoginChannelRepository extends ReactiveCrudRepository<LoginChannel, Integer> {

  /**
   * 使用指定的 {@code channel_key} 查询登录通道.
   *
   * @param channelKey 通道钥匙
   * @return 登录通道
   */
  Mono<LoginChannel> findByChannelKey(String channelKey);
}
